package com.designPattern.DecoratorMode;

/**
 * Created by Administrator on 2018/3/10.
 */

public class Trousers {

}

class SportPants extends ClothingDecorator {

    public SportPants(Human human) {
        super(human);
    }

    @Override
    public String wearCloth() {
        return super.wearCloth() + " 运动裤";
    }

    @Override
    public int glamour() {
        return super.glamour() + 1;
    }
}

class Slacks extends ClothingDecorator {

    public Slacks(Human human) {
        super(human);
    }

    @Override
    public String wearCloth() {
        return super.wearCloth() + " 休闲裤";
    }

    @Override
    public int glamour() {
        return super.glamour() + 1;
    }
}

class Jeans extends ClothingDecorator {

    public Jeans(Human human) {
        super(human);
    }

    @Override
    public String wearCloth() {
        return super.wearCloth() + " 牛仔裤";
    }

    @Override
    public int glamour() {
        return super.glamour() + 1;
    }
}